<%@ Page Language="C#" MasterPageFile="~/SurveyHost.Master" AutoEventWireup="true"
    Codebehind="ParticipantValidation.aspx.cs" Inherits="SurveyHost.Web.Participant.ParticipantValidation"
    Title="Survey Host Participant Validation" %>

<%@ Register Assembly="SurveyHost.Core" Namespace="SurveyHost.Core.Controls"
    TagPrefix="shc" %>
<%@ Register Src="~/Controls/Paragraph.ascx" TagName="Paragraph"
    TagPrefix="cms" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
    runat="server">
<%--    <div class="post">
        <h1 class="title">
        </h1>
        <p class="byline">
        </p>
        <div class="entry">
        </div>
    </div>--%>
    <div class="post">
        <h1 class="title">
            Age
        </h1>
        <p class="byline">
        </p>
        <div class="entry">
            <p>Please tell us about your age</p>
            <asp:RadioButtonList ID="AgeButtonList" runat="server" CausesValidation="True">
                <asp:ListItem Value="under">I am under 18 years of age</asp:ListItem>
                <asp:ListItem Value="over">I am 18 years of age or older</asp:ListItem>
                <asp:ListItem Value="na" Selected="true">I do not wish to answer this question</asp:ListItem>
            </asp:RadioButtonList>
            <shc:SecondChanceValidator ID="AgeButtonValidator" ControlToValidate="AgeButtonList"
                ShouldNotEqual="na" MaxRetries="1" runat="server" ForeColor="Red" Display="dynamic">
                Are you sure you do not wish to answer the above question?<br />
                Please verify your answer and click Submit again.
            </shc:SecondChanceValidator>
        </div>
    </div>
    <div class="post">
        <h1 class="title">
            Relationships
        </h1>
        <p class="byline">
        </p>
        <div class="entry">
            <p>Please tell us about the status of your relationships in the
            past year</p>
            <asp:RadioButtonList ID="RelationshipButtonList" runat="server"
                CausesValidation="True">
                <asp:ListItem Value="no">I HAVE NOT been in a relationship in the past year</asp:ListItem>
                <asp:ListItem Value="yes">I HAVE been in a relationship within the past year</asp:ListItem>
                <asp:ListItem Value="na" Selected="true">I do not wish to answer this question</asp:ListItem>
            </asp:RadioButtonList>
            <shc:SecondChanceValidator ID="RelationshipButtonListValidator"
                ControlToValidate="RelationshipButtonList" ShouldNotEqual="na"
                MaxRetries="1" runat="server" ForeColor="red" Display="dynamic">
                Are you sure you do not wish to answer the above question?<br />
                Please verify your answer and click Submit again.
            </shc:SecondChanceValidator>
        </div>
    </div>
    <div style="text-align: right;">
        <asp:Button ID="Submit" runat="server" OnClick="Submit_Click"
            Text="Submit your answers" CausesValidation="true" />
    </div>
</asp:Content>
